<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>我的优惠券 | 社交商城</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://picsum.photos/id/237/200/200">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --radius: 8px;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 优惠券页面容器 */
    .coupon-list {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .coupon-list.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 15px;
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
    }
    
    /* 优惠券筛选 */
    .coupon-filter {
      padding: 12px 20px;
      display: flex;
      gap: 10px;
      overflow-x: auto;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
    }
    
    .filter-btn {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      background-color: var(--light);
      color: var(--dark);
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .filter-btn.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 优惠券列表 */
    .coupons-container {
      flex: 1;
      overflow-y: auto;
      background-color: var(--white);
      transition: all 0.3s ease;
      padding: 16px;
    }
    
    /* 优惠券样式1 - 标准样式 */
    .coupon-item {
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 16px;
      position: relative;
      background-color: white;
      box-shadow: var(--shadow);
      transition: transform 0.2s ease;
    }
    
    .coupon-item:active {
      transform: scale(0.99);
    }
    
    .coupon-main {
      display: flex;
      padding: 16px;
    }
    
    .coupon-value {
      flex: 0 0 100px;
      text-align: center;
      padding-right: 16px;
      border-right: 1px dashed rgba(0,0,0,0.1);
    }
    
    .coupon-amount {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary);
      line-height: 1;
    }
    
    .coupon-amount small {
      font-size: 16px;
      font-weight: normal;
    }
    
    .coupon-desc {
      flex: 1;
      padding-left: 16px;
    }
    
    .coupon-title {
      font-weight: 600;
      margin-bottom: 4px;
      font-size: 16px;
    }
    
    .coupon-condition {
      font-size: 12px;
      color: var(--secondary);
      margin-bottom: 6px;
    }
    
    .coupon-expiry {
      font-size: 12px;
      color: var(--secondary);
    }
    
    .coupon-action {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .coupon-action.valid {
      background-color: var(--primary);
      color: white;
    }
    
    .coupon-action.used,
    .coupon-action.expired {
      background-color: var(--light);
      color: var(--secondary);
    }
    
    /* 空券状态标签 */
    .coupon-tag {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 500;
    }
    
    .tag-used {
      background-color: rgba(107, 114, 128, 0.1);
      color: var(--secondary);
    }
    
    .tag-expired {
      background-color: rgba(239, 68, 68, 0.1);
      color: #EF4444;
    }
    
    /* 空券分类标题 */
    .coupon-section {
      margin: 20px 0 10px;
      font-size: 16px;
      font-weight: 600;
      color: var(--dark);
      padding-left: 4px;
    }
    
    /* 空状态 */
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      text-align: center;
      color: var(--secondary);
    }
    
    .empty-icon {
      font-size: 60px;
      margin-bottom: 20px;
      opacity: 0.3;
    }
    
    .empty-text {
      margin-bottom: 20px;
      font-size: 16px;
    }
    
    .empty-action {
      padding: 8px 24px;
      border-radius: 6px;
      background-color: var(--primary);
      color: white;
      border: none;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .coupon-item {
      border-left: 4px solid var(--primary);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header,
    .style-2 .filter-btn.active {
      background-color: var(--primary);
      color: white;
      border-color: rgba(255, 255, 255, 0.2);
    }
    
    .style-2 .header-btn,
    .style-2 .page-title,
    .style-2 .back-btn {
      color: white;
    }
    
    .style-2 .coupon-item {
      border-radius: 16px;
      background: linear-gradient(135deg, #fff0f5 0%, #ffe6f0 100%);
      border: 1px solid rgba(236, 72, 153, 0.1);
    }
    
    .style-2 .coupon-value {
      border-right-color: rgba(236, 72, 153, 0.2);
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .coupon-item {
      background-color: white;
      border-radius: 12px;
      border: none;
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
    }
    
    .style-3 .coupon-amount {
      color: var(--primary);
    }
    
    .style-3 .coupon-action.valid {
      background-color: rgba(16, 185, 129, 0.1);
      color: var(--primary);
      border: 1px solid var(--primary);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .coupon-item {
      background: linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0%, rgba(251, 191, 36, 0) 100%);
      border: 1px dashed rgba(245, 158, 11, 0.3);
    }
    
    .style-4 .coupon-tag {
      background-color: rgba(245, 158, 11, 0.1);
      color: #B45309;
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .coupon-item {
      border-radius: 20px;
      background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0) 70%);
    }
    
    .style-5 .coupon-value {
      position: relative;
    }
    
    .style-5 .coupon-value::after {
      content: '';
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 1px;
      background-image: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.3), transparent);
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container,
    .style-6 .page-header,
    .style-6 .coupon-filter,
    .style-6 .coupons-container {
      background-color: var(--white);
    }
    
    .style-6 .page-header {
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-btn,
    .style-6 .page-title,
    .style-6 .back-btn,
    .style-6 .filter-btn,
    .style-6 .coupon-title,
    .style-6 .coupon-section {
      color: var(--dark);
    }
    
    .style-6 .filter-btn {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    .style-6 .coupon-item {
      background-color: var(--light);
      border: 1px solid var(--border);
    }
    
    .style-6 .coupon-value {
      border-right-color: rgba(255, 255, 255, 0.1);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .coupon-amount {
        font-size: 24px;
      }
      
      .coupon-value {
        flex: 0 0 80px;
      }
      
      .coupon-action {
        padding: 4px 8px;
        font-size: 12px;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝优惠券列表 -->
    <div class="coupon-list active" id="coupons1">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (8)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (5)</button>
        <button class="filter-btn">已使用 (2)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">可用优惠券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>50</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">全场通用优惠券</div>
              <div class="coupon-condition">满299元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-31</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>30</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">电子产品专用券</div>
              <div class="coupon-condition">满199元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-15</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>20</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">新品首发优惠券</div>
              <div class="coupon-condition">满99元可用</div>
              <div class="coupon-expiry">有效期至 2023-10-20</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-section">已使用</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>100</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">会员专享优惠券</div>
              <div class="coupon-condition">满599元可用</div>
              <div class="coupon-expiry">已使用 2023-09-05</div>
            </div>
          </div>
          <div class="coupon-tag tag-used">已使用</div>
          <div class="coupon-action used">已使用</div>
        </div>
        
        <div class="coupon-section">已过期</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>15</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">日常通用优惠券</div>
              <div class="coupon-condition">满50元可用</div>
              <div class="coupon-expiry">已过期 2023-08-10</div>
            </div>
          </div>
          <div class="coupon-tag tag-expired">已过期</div>
          <div class="coupon-action expired">已过期</div>
        </div>
      </div>
    </div>
    
    <!-- 风格2：活力粉优惠券列表 -->
    <div class="coupon-list" id="coupons2">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (12)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (8)</button>
        <button class="filter-btn">已使用 (3)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">服饰专用券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>80</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">女装新品优惠券</div>
              <div class="coupon-condition">满399元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-15</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>40</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">秋冬服饰优惠券</div>
              <div class="coupon-condition">满199元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-30</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-section">通用优惠券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>20</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">无门槛优惠券</div>
              <div class="coupon-condition">无使用门槛</div>
              <div class="coupon-expiry">有效期至 2023-10-25</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>100</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">节日专享优惠券</div>
              <div class="coupon-condition">满599元可用</div>
              <div class="coupon-expiry">已使用 2023-09-10</div>
            </div>
          </div>
          <div class="coupon-tag tag-used">已使用</div>
          <div class="coupon-action used">已使用</div>
        </div>
      </div>
    </div>
    
    <!-- 风格3：生态绿优惠券列表 -->
    <div class="coupon-list" id="coupons3">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (6)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (4)</button>
        <button class="filter-btn">已使用 (1)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">环保商品券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>30</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">有机食品优惠券</div>
              <div class="coupon-condition">满150元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-20</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>50</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">环保家居优惠券</div>
              <div class="coupon-condition">满299元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-25</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-section">已过期</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>25</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">天然护肤品优惠券</div>
              <div class="coupon-condition">满120元可用</div>
              <div class="coupon-expiry">已过期 2023-08-30</div>
            </div>
          </div>
          <div class="coupon-tag tag-expired">已过期</div>
          <div class="coupon-action expired">已过期</div>
        </div>
      </div>
    </div>
    
    <!-- 风格4：温暖橙优惠券列表 -->
    <div class="coupon-list" id="coupons4">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (15)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (9)</button>
        <button class="filter-btn">已使用 (5)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">食品饮料券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>15</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">零食满减券</div>
              <div class="coupon-condition">满69元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-10</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>40</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">进口食品优惠券</div>
              <div class="coupon-condition">满199元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-20</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>60</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">节日礼盒优惠券</div>
              <div class="coupon-condition">满299元可用</div>
              <div class="coupon-expiry">已使用 2023-10-01</div>
            </div>
          </div>
          <div class="coupon-tag tag-used">已使用</div>
          <div class="coupon-action used">已使用</div>
        </div>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫优惠券列表 -->
    <div class="coupon-list" id="coupons5">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (7)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (5)</button>
        <button class="filter-btn">已使用 (1)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">美妆个护券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>100</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">高端护肤优惠券</div>
              <div class="coupon-condition">满599元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-25</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>50</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">彩妆新品优惠券</div>
              <div class="coupon-condition">满299元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-10</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>20</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">香水香氛优惠券</div>
              <div class="coupon-condition">满99元可用</div>
              <div class="coupon-expiry">已使用 2023-09-15</div>
            </div>
          </div>
          <div class="coupon-tag tag-used">已使用</div>
          <div class="coupon-action used">已使用</div>
        </div>
      </div>
    </div>
    
    <!-- 风格6：商务黑优惠券列表 -->
    <div class="coupon-list" id="coupons6">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">我的优惠券 (9)</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-trash-o"></i></button>
        </div>
      </div>
      
      <div class="coupon-filter">
        <button class="filter-btn active">全部</button>
        <button class="filter-btn">未使用 (6)</button>
        <button class="filter-btn">已使用 (2)</button>
        <button class="filter-btn">已过期 (1)</button>
      </div>
      
      <div class="coupons-container">
        <div class="coupon-section">数码办公券</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>200</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">笔记本电脑优惠券</div>
              <div class="coupon-condition">满3999元可用</div>
              <div class="coupon-expiry">有效期至 2023-12-30</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>50</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">办公设备优惠券</div>
              <div class="coupon-condition">满499元可用</div>
              <div class="coupon-expiry">有效期至 2023-11-28</div>
            </div>
          </div>
          <div class="coupon-action valid">立即使用</div>
        </div>
        
        <div class="coupon-section">已使用</div>
        
        <div class="coupon-item">
          <div class="coupon-main">
            <div class="coupon-value">
              <div class="coupon-amount"><small>¥</small>100</div>
            </div>
            <div class="coupon-desc">
              <div class="coupon-title">手机配件优惠券</div>
              <div class="coupon-condition">满599元可用</div>
              <div class="coupon-expiry">已使用 2023-09-20</div>
            </div>
          </div>
          <div class="coupon-tag tag-used">已使用</div>
          <div class="coupon-action used">已使用</div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const couponPages = {
      1: document.getElementById('coupons1'),
      2: document.getElementById('coupons2'),
      3: document.getElementById('coupons3'),
      4: document.getElementById('coupons4'),
      5: document.getElementById('coupons5'),
      6: document.getElementById('coupons6')
    };
    const bodyElement = document.body;
    const backButtons = document.querySelectorAll('.back-btn');
    const filterButtons = document.querySelectorAll('.filter-btn');
    const couponActions = document.querySelectorAll('.coupon-action.valid');
    
    // 初始化
    function init() {
      // 初始化筛选按钮
      initFilterButtons();
      
      // 初始化优惠券操作按钮
      initCouponActions();
      
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 键盘导航切换样式
      document.addEventListener('keydown', function(e) {
        if (e.key === 'ArrowLeft') {
          let prev = currentStyle - 1;
          if (prev < 1) prev = 6;
          switchStyle(prev);
        } else if (e.key === 'ArrowRight') {
          let next = currentStyle + 1;
          if (next > 6) next = 1;
          switchStyle(next);
        }
      });
      
      // 返回按钮
      backButtons.forEach(btn => {
        btn.addEventListener('click', function() {
          // 返回上一页
          history.back();
        });
      });
    }
    
    // 初始化筛选按钮
    function initFilterButtons() {
      filterButtons.forEach(btn => {
        btn.addEventListener('click', function() {
          // 找到同组中的其他按钮
          const parent = this.parentElement;
          parent.querySelectorAll('.filter-btn').forEach(button => {
            button.classList.remove('active');
          });
          
          // 激活当前按钮
          this.classList.add('active');
        });
      });
    }
    
    // 初始化优惠券操作按钮
    function initCouponActions() {
      couponActions.forEach(action => {
        action.addEventListener('click', function() {
          const couponTitle = this.closest('.coupon-item').querySelector('.coupon-title').textContent;
          alert(`使用优惠券：${couponTitle}`);
        });
      });
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(couponPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      couponPages[style].classList.add('active');
    }
    
    // 启动
    init();
  </script>
</body>
</html>
